# Contributor: Andrew Hills <ahills@ednos.net>
# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=zathura-pdf-poppler
pkgver=0.3.2
pkgrel=0
pkgdesc="Poppler plugin adds PDF support to zathura"
options="!check" # No testsuite
url="https://git.pwmt.org/pwmt/zathura-pdf-poppler"
arch="all"
license="Zlib"
depends="zathura"
makedepends="zathura-dev poppler-dev meson"
source="https://git.pwmt.org/pwmt/zathura-pdf-poppler/-/archive/$pkgver/zathura-pdf-poppler-$pkgver.tar.gz"

build() {
	abuild-meson -Db_lto=true . build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
5e6d748f9dfcc9e318ee7947d3a4d9acbbb30d6b45810a7c2fd2d0572d98872f5d594add8683b6579791fb82846a3d7854e84239ac5167c0541e700518a31043  zathura-pdf-poppler-0.3.2.tar.gz
"
